using System;
using CodeAngel.Domain.Framework;

namespace CodeAngel.Domain
{
	public partial class User_DeniedPermissionCollection
	{
        #region Find

        /// <summary>
        /// Find the User_DeniedPermission entity for the identified DeniedPermission.  Null is
        /// returned if one is not found.
        /// </summary>
        public User_DeniedPermission Find(Permission thisDeniedPermission)
        {
            foreach (User_DeniedPermission ThisUserDeniedPermission in this)
                if (ThisUserDeniedPermission.DeniedPermission.ID == thisDeniedPermission.ID) return ThisUserDeniedPermission;
            return null;
        }

        #endregion


	}
}

